package com.bajiao.vo.store;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel("StoreAdmin")
public class StoreAdmin {

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "申请记录id", required = true, position = 10)
    private String applyId;

    @Excel(name = "店铺名称", width = 20)
    @ApiModelProperty(value = "标题", required = true, position = 20)
    private String title;

    @ApiModelProperty(value = "封面", required = true, position = 30)
    private String cover;

    @Excel(name = "状态", width = 15, replace={"闭店_0", "营业中_1","休息中_2"})
    @ApiModelProperty(value = "0-闭店 1-营业中 2-休息中", required = true, position = 40)
    private int status;

    @Excel(name = "所在省", width = 15)
    @ApiModelProperty(value = "店铺所在省")
    private String province;

    @Excel(name = "所在市", width = 15)
    @ApiModelProperty(value = "店铺所在城市")
    private String city;

    @Excel(name = "所在区/县", width = 15)
    @ApiModelProperty(value = "所在区/县")
    private String district;

    @Excel(name = "店铺详细地址", width = 15)
    @ApiModelProperty(value = "店铺地址", required = true, position = 50)
    private String address;

    @ApiModelProperty(value = "经度", required = true, position = 60)
    private String longitude;

    @ApiModelProperty(value = "纬度", required = true, position = 70)
    private String latitude;

    @Excel(name = "店铺联系电话", width = 20)
    @ApiModelProperty(value = "店铺联系电话", required = true, position = 80)
    private String mobile;

    @Excel(name = "营业时间", width = 20)
    @ApiModelProperty(value = "营业时间", required = true, position = 90)
    private String openHours;

    @Excel(name = "所属行业", width = 15)
    @ApiModelProperty(value = "所属行业", required = true, position = 100)
    private String industryTitle;

    @ApiModelProperty(value = "所属行业", required = true, position = 100)
    private Integer industryId;

    @Excel(name = "简介", width = 50)
    @ApiModelProperty(value = "简介", required = true, position = 110)
    private String intro;

    @ApiModelProperty(value = "店铺照片", required = true, position = 120)
    private String sliderImage;

    @Excel(name = "入驻时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", required = true, position = 130)
    private Date createTime;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间", required = true, position = 140)
    private Date updateTime;

    @Excel(name = "店铺浏览量", width = 15)
    @ApiModelProperty(value = "店铺浏览量")
    private Long browse;

    @Excel(name = "类型", width = 15, replace={"入驻_1","录入_2"})
    @ApiModelProperty("1-入驻 2-录入")
    private Integer type;

    @ApiModelProperty("删除标识 0-否 1-是")
    private Integer delFlag;
}
